package com.example.demo.service;

import com.example.demo.entity.User;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.demo.utils.AjaxJson;
import com.example.demo.vo.studentAddVo;
import com.example.demo.vo.teacherAddVo;

/**
 * <p>
 * 用户表 服务类
 * </p>
 *
 * @author 
 * @since 2025-11-10
 */
public interface IUserService extends IService<User> {

    AjaxJson login(String username, String password, Integer roleId);

    AjaxJson updatePassword(String oldPassword, String newPassword, User user);

    AjaxJson register(User user);

    AjaxJson approve(Integer id);

    AjaxJson addRegisterByStudent(studentAddVo student);

    AjaxJson addRegisterByTeacher(teacherAddVo teacher);

}
